using System;
using System.Globalization;
using System.Windows.Data;

namespace MediaAssistant.Converters
{
    public class RecommendedMovieCountConverter:IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var count = (int) value;
            return count == 0 ? "See Also" : string.Format("See Also ({0})", count);
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}